package com.framework.modules.base.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;

/**
 * 用户余额表
 *
 * @author MIT
 * @email litmiss@gmail.com
 * @date 2020-11-02 07:03:12
 */
@TableName("tb_user_balance")
public class UserBalanceEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 用户名
	 */
	@TableId
	private Integer uid;
	/**
	 * 友街币，和金额之间比值10比1
	 */
	private Integer coin;
	/**
	 * 可用余额
	 */
	private BigDecimal balance;
	/**
	 * 累计消费金额
	 */
	private BigDecimal totalAmount;
	/**
	 * 累计友豆
	 */
	private Integer totalBeans;
	/**
	 * 累计收入
	 */
	private BigDecimal totalIncome;
	/**
	 * 累计提现
	 */
	private BigDecimal totalWithdraw;
	/**
	 * 添加时间
	 */
	private Integer adddate;

	/**
	 * 设置：用户名
	 */
	public void setUid(Integer uid) {
		this.uid = uid;
	}
	/**
	 * 获取：用户名
	 */
	public Integer getUid() {
		return uid;
	}
	/**
	 * 设置：友街币，和金额之间比值10比1
	 */
	public void setCoin(Integer coin) {
		this.coin = coin;
	}
	/**
	 * 获取：友街币，和金额之间比值10比1
	 */
	public Integer getCoin() {
		return coin;
	}
	/**
	 * 设置：可用余额
	 */
	public void setBalance(BigDecimal balance) {
		this.balance = balance;
	}
	/**
	 * 获取：可用余额
	 */
	public BigDecimal getBalance() {
		return balance;
	}
	/**
	 * 设置：累计消费金额
	 */
	public void setTotalAmount(BigDecimal totalAmount) {
		this.totalAmount = totalAmount;
	}
	/**
	 * 获取：累计消费金额
	 */
	public BigDecimal getTotalAmount() {
		return totalAmount;
	}

	public Integer getTotalBeans() {
		return totalBeans;
	}

	public void setTotalBeans(Integer totalBeans) {
		this.totalBeans = totalBeans;
	}

	public BigDecimal getTotalIncome() {
		return totalIncome;
	}

	public void setTotalIncome(BigDecimal totalIncome) {
		this.totalIncome = totalIncome;
	}

	public BigDecimal getTotalWithdraw() {
		return totalWithdraw;
	}

	public void setTotalWithdraw(BigDecimal totalWithdraw) {
		this.totalWithdraw = totalWithdraw;
	}

	/**
	 * 设置：添加时间
	 */
	public void setAdddate(Integer adddate) {
		this.adddate = adddate;
	}
	/**
	 * 获取：添加时间
	 */
	public Integer getAdddate() {
		return adddate;
	}
}
